package com.yiibai.tutorial.javabasic.variable;

class Rectangle {
	int length;
	int width;

	void insert(int l, int w) {
		length = l;
		width = w;
	}

	void calculateArea() {
		System.out.println(length * width);
	}
}

public class TestRectangle2 {
	public static void main(String[] args) {
		Rectange r1 = new Rectange(), r2 = new Rectange();// creating two objects

		r1.insert(11, 5);
		r1.insert(3, 15);
		r2.calculateArea();
		r2.calculateArea();
	}
}
